package com.pucheng.bracelet.data.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.pucheng.bracelet.app.util.DatetimeUtil

@Entity(tableName = "blood_pressure")
data class BloodPressureBean(@PrimaryKey(autoGenerate = true) val id: Int = 0, @ColumnInfo(name = "systolic_pressure") val systolicPressure:Int = 0, @ColumnInfo(name = "diastolic_pressure") val diastolicPressure:Int = 0, @ColumnInfo(name = "measured_date") val measuredDate:String = DatetimeUtil.formatDate(System.currentTimeMillis(),DatetimeUtil.DATE_PATTERN_A_H)) : BarChartBean("$diastolicPressure~$systolicPressure", systolicPressure.toDouble())